package com.qianji.petmall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qianji.common.to.GiteeUserVo;
import com.qianji.common.utils.PageUtils;
import com.qianji.petmall.member.entity.MemberEntity;
import com.qianji.petmall.member.exception.PhoneException;
import com.qianji.petmall.member.exception.UserNameException;
import com.qianji.petmall.member.vo.MemberLoginVo;
import com.qianji.petmall.member.vo.MemberRegisVo;

import java.util.Map;

/**
 * 会员
 *
 * @author xiaoxin
 * @email 485350978@qq.com
 * @date 2022-01-07 15:22:06
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void addRegis(MemberRegisVo memberRegisVo);

    void checkPhone(String phone) throws PhoneException;

    void checkUserName(String userName) throws UserNameException;

    MemberEntity login(MemberLoginVo memberLoginVo);

    MemberEntity login(GiteeUserVo giteeUserVo) throws Exception;
}

